/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Logica.Core.Personal;

import Logica.Core.PersonaLegal.Proveedor;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 *
 * @author Luciano
 */
@Entity
public class Insumo implements Serializable {

    @Id
    private double id;
    @OneToOne
    private Proveedor miProveedor;

    public Insumo() {
    }

    public Insumo(double id, Proveedor miProveedor) {
        this.id = id;
        this.miProveedor = miProveedor;
    }

    public double getId() {
        return id;
    }

    public void setId(double id) {
        this.id = id;
    }

    public Proveedor getMiProveedor() {
        return miProveedor;
    }

    public void setMiProveedor(Proveedor miProveedor) {
        this.miProveedor = miProveedor;
    }
 
    
    
}
